/** When your routing table is too long, you can split it into small modules**/
import routeComponentName from '@/config/route-component-name'
import Layout from '@/layout/index.vue'

const busicRouter = [
  {
    path: '/busic',
    component: () => import('@/layout/index.vue'),
    name: 'busic',
    meta: {
      title: '账号权限',
      icon: 'Setting',
    },
    redirect: '/busic/organ',
    children: [
      {
        path: 'organ',
        component: () => import('@/views/busic/organ/index.vue'),
        name: 'organ',
        meta: {
          title: '员工管理',
          keepAlive: true,
          componentName: routeComponentName.accountPermission.staffManger,
        },
      },
      {
        path: 'role',
        component: () => import('@/views/busic/role/index.vue'),
        name: 'role',
        meta: {
          title: '角色权限',
          keepAlive: true,
          componentName: routeComponentName.accountPermission.rolePermission,
        },
      },
    ],
  },
]

export default busicRouter
